<template>
	<view class="listBox">
		<view class="bg-white u-margin-bottom-30 u-flex padding list" v-for="(item,index) in list" :key="index">
			<view v-if="check">
				<u-checkbox active-color="#ff7348" shape="circle" v-model="item.checked"></u-checkbox>
			</view>
			<view class="u-flex-1" style="overflow: hidden;">
				<view class="u-flex u-margin-bottom-30">
					<view class="u-flex-1" style="overflow: hidden;">
						<view class="u-line-1 title">
							萨拉的咖啡就爱上了对方萨拉的咖啡就爱上了对方
						</view>
						<view class="u-line-1 address u-margin-bottom-20 u-margin-top-20">
							<image :src='serverImageUrl("/static/images/com/customerListBySearchResult/address.png")'>
							</image>
							萨拉的咖啡就爱上了对方
						</view>
						<view class="u-line-1">
							<u-tag text="searchParams.main_business " color="#ff7348" bg-color="#ffeee7"
								border-color="transparent" type="success" />
						</view>
					</view>
					<image class="image u-margin-left-10" :src='serverImageUrl("/static/images/index/huangji.png")'>
					</image>
				</view>
				<u-line color="#cccccc" />
				<view class="u-flex information u-margin-top-30">
					<view>
						<view class="u-margin-bottom-20">{{$t("邮箱")}}</view>
						<view class="u-line-1 color-999">asjkdhfij@qq.com</view>
					</view>
					<u-line length="80" class="u-margin-left-20 u-margin-right-20" direction="col"
						color="#cccccc"></u-line>
					<view>
						<view class="u-margin-bottom-20">{{$t("电话")}}</view>
						<view class="u-line-1 color-999">asjkdhfij@qq.com</view>
					</view>
					<u-line length="80" class="u-margin-left-20 u-margin-right-20" direction="col"
						color="#cccccc"></u-line>
					<view>
						<view class="u-margin-bottom-20">{{$t("官网")}}</view>
						<view class="u-line-1 color-999">asjkdhfij@qq.com</view>
					</view>
				</view>
				<view class="u-margin-top-30">
					{{$t("已收录")}} :
					<u-tag text="自定义名单" color="#b16501" bg-color="#ffe4bb" border-color="transparent"
						class="u-margin-left-20" type="success" />
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			check: {
				type: Boolean,
				default: false,
			},
			list: {
				type: Array,
				default: [],
				required: true,
			},
		},
		data() {
			return {
			};
		},
		methods:{
		}
	}
</script>

<style lang="scss" scoped>
	.listBox {

		.padding {
			padding: 20rpx 30rpx;
		}

		.color-999 {
			color: #999;
		}

		.bg-white {
			background: #fff;
		}

		.list {
			border-radius: 15rpx;

			.information {
				justify-content: center;
				font-size: 22rpx;

				&>view {
					overflow: hidden;
				}
			}

			.address {
				color: #999999;
				font-size: 24rpx;

				image {
					width: 30rpx;
					height: 30rpx;
					margin-right: 10rpx;
					vertical-align: middle;
					transform: translateY(-2px);
				}
			}

			.image {
				width: 200rpx;
				height: 200rpx;
				border-radius: 30rpx;
			}
		}
	}
</style>